package com.weicoder.shop.po

import javax.persistence.Entity
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import org.springframework.context.annotation.Scope
import org.springframework.stereotype.Component
import org.springframework.beans.factory.config.ConfigurableBeanFactory
import com.weicoder.base.annotation.Cache
import com.weicoder.site.entity.base.BaseEntityId
import scala.beans.BeanProperty
import java.lang.Double
import java.math.BigDecimal

/**
 * 配送方式
 * @author WD
 * @since JDK7
 * @version 1._ 2_12-_1-1_
 */
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Entity
@DynamicInsert
@DynamicUpdate
@Cache
class Dispatch extends BaseEntityId {
  // 配送类型
  //	Integer				type
  // 物流公司
  @BeanProperty
  var corpId: Integer = _
  // 首重量
  @BeanProperty
  var firstWeight: Double = _
  // 续重量
  @BeanProperty
  var lastWeight: Double = _
  // 首价格
  @BeanProperty
  var firstPrice: BigDecimal = _
  // 续价格
  @BeanProperty
  var lastPrice: BigDecimal = _
  // 介绍
  @BeanProperty
  var detail: String = _
  // 名称
  @BeanProperty
  var name: String = _
}
